package com.example.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.infrastructure.common.BasePO;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 处方药品明细表 PO
 *
 * @author wangal
 * @since 2025-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("prescription_details")
@Schema(name = "PrescriptionDetails", description = "处方药品明细表")
public class PrescriptionDetails extends BasePO {

    private static final long serialVersionUID = 1L;

    @Schema(description = "处方ID")
    @TableField("prescription_id")
    private Long prescriptionId;

    @Schema(description = "药品名称")
    @TableField("medicine_name")
    private String medicineName;

    @Schema(description = "药品编码")
    @TableField("medicine_code")
    private String medicineCode;

    @Schema(description = "规格")
    @TableField("specification")
    private String specification;

    @Schema(description = "生产厂家")
    @TableField("manufacturer")
    private String manufacturer;

    @Schema(description = "用法")
    @TableField("usage_method")
    private String usageMethod;

    @Schema(description = "用量")
    @TableField("dosage")
    private String dosage;

    @Schema(description = "频次")
    @TableField("frequency")
    private String frequency;

    @Schema(description = "疗程")
    @TableField("duration")
    private String duration;

    @Schema(description = "数量")
    @TableField("quantity")
    private Integer quantity;

    @Schema(description = "单位")
    @TableField("unit")
    private String unit;

    @Schema(description = "单价")
    @TableField("unit_price")
    private BigDecimal unitPrice;

    @Schema(description = "小计")
    @TableField("total_price")
    private BigDecimal totalPrice;

    @Schema(description = "租户编号")
    @TableField("tenant_id")
    private Long tenantId;


}